<?php
$ips[] = array("Colo_cnb","203.209.224.0/20");
$ips[] = array("Colo_cnb","202.43.216.0/23");
$ips[] = array("Colo_cnb","202.165.104.0/22");
$ips[] = array("Colo_cnb","202.165.96.0/21");
$ips[] = array("CT_Tianjin","219.150.32.0/19");
$ips[] = array("CT_Tianjin","221.239.0.0/17");
$ips[] = array("CT_Tianjin","219.150.64.0/19");
$ips[] = array("CT_Tianjin","219.150.96.0/20");
$ips[] = array("CT_Tianjin","221.238.0.0/16");
$ips[] = array("CMNET_Shanghai","211.136.96.0/19");
$ips[] = array("CMNET_Shanghai","218.202.224.0/19");
$ips[] = array("CMNET_Shanghai","211.136.128.0/18");
$ips[] = array("CNC-Tianjin","60.24.0.0/14");
$ips[] = array("CNC-Tianjin","61.181.0.0/16");
$ips[] = array("CNC-Tianjin","218.67.128.0/17");
$ips[] = array("CNC-Tianjin","61.136.0.0/18");
$ips[] = array("CNC-Tianjin","218.68.0.0/15");
$ips[] = array("CNC-Tianjin","202.99.64.0/18");
$ips[] = array("CNC-Tianjin","60.30.0.0/16");
$ips[] = array("CNC-Tianjin","60.28.0.0/15");
$ips[] = array("CNC-Tianjin","221.198.0.0/16");
$ips[] = array("CNC-Tianjin","221.196.0.0/15");
$ips[] = array("CT_Beijing","218.30.26.0/23");
$ips[] = array("CT_Beijing","218.30.25.0/24");
$ips[] = array("CT_Beijing","219.141.128.0/17");
$ips[] = array("CT_Beijing","211.156.168.0/22");
$ips[] = array("CT_Beijing","218.30.96.0/19");
$ips[] = array("CT_Beijing","220.181.0.0/16");
$ips[] = array("CT_Beijing","218.30.28.0/23");
$ips[] = array("CT_Beijing","219.142.0.0/15");
$ips[] = array("Colo_cn2","202.160.176.0/20");
$ips[] = array("CT_Hubei","219.140.0.0/16");
$ips[] = array("CT_Hubei","221.232.0.0/14");
$ips[] = array("CT_Hubei","61.136.128.0/17");
$ips[] = array("CT_Hubei","202.103.0.0/18");
$ips[] = array("CT_Hubei","61.184.0.0/16");
$ips[] = array("CT_Hubei","202.110.128.0/18");
$ips[] = array("CT_Hubei","219.138.0.0/15");
$ips[] = array("CT_Hubei","61.183.0.0/16");
$ips[] = array("CERNET_TTN","58.196.0.0/15");
$ips[] = array("CNC_Chongqing","58.17.128.0/17");
$ips[] = array("CNC_Chongqing","221.5.128.0/17");
$ips[] = array("CNC_Chongqing","221.7.64.0/18");
$ips[] = array("CNC_Chongqing","221.13.96.0/19");
$ips[] = array("CT_Gansu","61.159.64.0/18");
$ips[] = array("CT_Gansu","202.100.64.0/19");
$ips[] = array("CT_Gansu","125.76.0.0/17");
$ips[] = array("CT_Gansu","60.164.0.0/15");
$ips[] = array("CT_Gansu","125.74.0.0/15");
$ips[] = array("CT_Gansu","61.134.64.0/19");
$ips[] = array("CT_Gansu","61.178.0.0/16");
$ips[] = array("CT_Sichuan","220.167.0.0/17");
$ips[] = array("CT_Sichuan","218.88.0.0/15");
$ips[] = array("CT_Sichuan","61.188.0.0/16");
$ips[] = array("CT_Sichuan","61.157.0.0/16");
$ips[] = array("CT_Sichuan","222.208.0.0/13");
$ips[] = array("CT_Sichuan","61.139.0.0/17");
$ips[] = array("CT_Sichuan","202.98.128.0/19");
$ips[] = array("CT_Sichuan","220.166.0.0/16");
$ips[] = array("CT_Sichuan","218.6.128.0/17");
$ips[] = array("CT_Sichuan","202.98.96.0/19");
$ips[] = array("CT_Sichuan","221.236.0.0/15");
$ips[] = array("CNC_Jiangsu","221.6.0.0/16");
$ips[] = array("CNC_Jiangxi","58.17.0.0/17");
$ips[] = array("CNC_Hubei","58.19.0.0/16");
$ips[] = array("CNC_Guangdong","221.4.0.0/17");
$ips[] = array("CNC_Guangdong","221.4.0.0/16");
$ips[] = array("CMNET_Henan","218.206.192.0/18");
$ips[] = array("CMNET_Henan","211.138.16.0/20");
$ips[] = array("CMNET_Henan","211.142.128.0/18");
$ips[] = array("CMNET_Henan","211.142.192.0/20");
$ips[] = array("CMNET_Henan","211.142.96.0/19");
$ips[] = array("CT_Hunan","61.150.128.0/17");
$ips[] = array("CT_Hunan","61.187.0.0/16");
$ips[] = array("CT_Hunan","61.137.0.0/17");
$ips[] = array("CT_Hunan","61.186.64.0/18");
$ips[] = array("CT_Hunan","218.75.128.0/17");
$ips[] = array("CT_Hunan","218.77.0.0/17");
$ips[] = array("CT_Hunan","220.170.0.0/16");
$ips[] = array("CT_Hunan","218.76.0.0/16");
$ips[] = array("CT_Hunan","222.240.0.0/13");
$ips[] = array("CT_Hunan","220.168.0.0/16");
$ips[] = array("CT_Hunan","202.103.64.0/18");
$ips[] = array("CT_Guangdong","218.20.0.0/16");
$ips[] = array("CT_Guangdong","61.146.0.0/16");
$ips[] = array("CT_Guangdong","218.13.0.0/16");
$ips[] = array("CT_Guangdong","61.140.0.0/14");
$ips[] = array("CT_Guangdong","59.40.0.0/15");
$ips[] = array("CT_Guangdong","59.42.0.0/16");
$ips[] = array("CT_Guangdong","61.144.0.0/15");
$ips[] = array("CT_Guangdong","202.96.128.0/18");
$ips[] = array("CT_Guangdong","218.16.0.0/14");
$ips[] = array("CT_Guangdong","202.104.0.0/15");
$ips[] = array("CT_Guangdong","59.32.0.0/13");
$ips[] = array("CT_Guangdong","218.14.0.0/15");
$ips[] = array("CT_Guangdong","202.103.128.0/18");
$ips[] = array("CT_Guangdong","121.14.0.0/16");
$ips[] = array("CT_Guangdong","219.128.0.0/13");
$ips[] = array("CT_Guangdong","219.136.0.0/15");
$ips[] = array("CT_Liaoning","219.148.192.0/18");
$ips[] = array("CT_Liaoning","59.44.0.0/14");
$ips[] = array("CT_Liaoning","219.149.0.0/17");
$ips[] = array("CT_Shanxi","222.80.0.0/15");
$ips[] = array("CT_Shanxi","124.117.0.0/16");
$ips[] = array("CT_Shanxi","202.100.160.0/19");
$ips[] = array("CT_Shanxi","222.83.0.0/17");
$ips[] = array("CT_Shanxi","59.49.0.0/17");
$ips[] = array("CT_Shanxi","218.244.64.0/19");
$ips[] = array("CT_Shanxi","202.107.128.0/18");
$ips[] = array("CT_Shanxi","59.48.0.0/16");
$ips[] = array("CT_Shanxi","222.82.0.0/16");
$ips[] = array("CT_Shanxi","202.99.192.0/22");
$ips[] = array("CT_Shanxi","219.234.0.0/19");
$ips[] = array("CT_Shanxi","124.118.0.0/15");
$ips[] = array("CT_Shanxi","218.84.0.0/16");
$ips[] = array("CT_Jilin","219.149.192.0/18");
$ips[] = array("CT_Jilin","222.168.0.0/15");
$ips[] = array("CT_Jilin","219.150.0.0/19");
$ips[] = array("CT_Jiangxi","59.62.0.0/15");
$ips[] = array("CT_Jiangxi","61.180.0.0/17");
$ips[] = array("CT_Jiangxi","61.131.128.0/17");
$ips[] = array("CT_Jiangxi","202.109.128.0/18");
$ips[] = array("CT_Jiangxi","218.65.0.0/17");
$ips[] = array("CT_Jiangxi","220.176.0.0/15");
$ips[] = array("CT_Jiangxi","218.64.0.0/16");
$ips[] = array("CT_Jiangxi","218.95.0.0/17");
$ips[] = array("CT_Jiangxi","59.52.0.0/14");
$ips[] = array("CT_Jiangxi","218.87.0.0/16");
$ips[] = array("CT_Jiangxi","202.101.192.0/18");
$ips[] = array("CT_Jiangxi","220.175.0.0/16");
$ips[] = array("CT_Yunnan","220.163.0.0/16");
$ips[] = array("CT_Yunnan","61.138.192.0/19");
$ips[] = array("CT_Yunnan","222.172.128.0/17");
$ips[] = array("CT_Yunnan","61.166.0.0/16");
$ips[] = array("CT_Yunnan","60.160.0.0/15");
$ips[] = array("CT_Yunnan","202.98.160.0/19");
$ips[] = array("CT_Yunnan","218.63.0.0/16");
$ips[] = array("CT_Yunnan","220.164.0.0/15");
$ips[] = array("CT_Yunnan","61.159.192.0/18");
$ips[] = array("CT_Yunnan","222.219.0.0/16");
$ips[] = array("CT_Yunnan","202.98.64.0/19");
$ips[] = array("CT_Yunnan","218.62.128.0/17");
$ips[] = array("CT_Yunnan","222.220.0.0/15");
$ips[] = array("CT_Jiangsu","61.177.0.0/16");
$ips[] = array("CT_Jiangsu","61.147.0.0/16");
$ips[] = array("CT_Jiangsu","61.160.0.0/16");
$ips[] = array("CT_Jiangsu","202.102.64.0/18");
$ips[] = array("CT_Jiangsu","218.2.0.0/15");
$ips[] = array("CT_Jiangsu","218.92.0.0/15");
$ips[] = array("CT_Jiangsu","222.184.0.0/13");
$ips[] = array("CT_Jiangsu","218.4.0.0/16");
$ips[] = array("CT_Jiangsu","202.102.56.0/21");
$ips[] = array("CT_Jiangsu","218.90.0.0/15");
$ips[] = array("CT_Jiangsu","221.224.0.0/13");
$ips[] = array("CT_Jiangsu","61.132.0.0/17");
$ips[] = array("CT_Jiangsu","218.30.129.0/24");
$ips[] = array("CT_Jiangsu","61.155.0.0/16");
$ips[] = array("CT_Jiangsu","218.94.0.0/16");
$ips[] = array("CT_Jiangsu","202.111.0.0/17");
$ips[] = array("CT_Ningxia","61.133.192.0/19");
$ips[] = array("CT_Ningxia","218.21.0.0/19");
$ips[] = array("CT_Ningxia","218.95.128.0/18");
$ips[] = array("CT_Ningxia","222.75.0.0/16");
$ips[] = array("CT_Ningxia","124.224.0.0/16");
$ips[] = array("CT_Ningxia","202.100.96.0/19");
$ips[] = array("CT_Ningxia","218.21.32.0/20");
$ips[] = array("CT_Ningxia","218.95.192.0/19");
$ips[] = array("CT_ShanXi","218.30.72.0/21");
$ips[] = array("CT_ShanXi","218.30.84.0/23");
$ips[] = array("CT_ShanXi","125.76.128.0/17");
$ips[] = array("CT_ShanXi","61.134.0.0/18");
$ips[] = array("CT_ShanXi","124.116.0.0/16");
$ips[] = array("CT_ShanXi","218.30.24.0/24");
$ips[] = array("CT_ShanXi","61.150.0.0/17");
$ips[] = array("CT_ShanXi","61.185.0.0/16");
$ips[] = array("CT_ShanXi","219.144.0.0/15");
$ips[] = array("CT_ShanXi","218.30.66.0/23");
$ips[] = array("CT_ShanXi","218.30.68.0/22");
$ips[] = array("CT_ShanXi","202.100.0.0/18");
$ips[] = array("CT_ShanXi","218.30.80.0/22");
$ips[] = array("CT_ShanXi","219.147.32.0/20");
$ips[] = array("CT_ShanXi","219.149.128.0/18");
$ips[] = array("CT_ShanXi","124.114.0.0/15");
$ips[] = array("CT_ShanXi","218.30.20.0/22");
$ips[] = array("CT_ShanXi","222.90.0.0/15");
$ips[] = array("CNC_Ningxia","221.199.0.0/19");
$ips[] = array("CNC_Ningxia","221.199.32.0/20");
$ips[] = array("CNC_Heilongjiang","221.212.0.0/16");
$ips[] = array("CNC_Heilongjiang","61.158.0.0/17");
$ips[] = array("CNC_Heilongjiang","60.218.0.0/15");
$ips[] = array("CNC_Heilongjiang","221.206.0.0/16");
$ips[] = array("CNC_Heilongjiang","221.208.0.0/14");
$ips[] = array("CNC_Heilongjiang","202.97.192.0/18");
$ips[] = array("CNC_Heilongjiang","61.167.0.0/16");
$ips[] = array("CNC_Heilongjiang","60.11.0.0/16");
$ips[] = array("CNC_Heilongjiang","61.180.128.0/17");
$ips[] = array("CNC_Heilongjiang","218.10.0.0/16");
$ips[] = array("CNC_Heilongjiang","221.207.64.0/18");
$ips[] = array("CNC_Heilongjiang","218.8.0.0/15");
$ips[] = array("CNC_Heilongjiang","60.14.0.0/15");
$ips[] = array("CNC_Heilongjiang","218.7.0.0/16");
$ips[] = array("CNC_Heilongjiang","221.207.128.0/17");
$ips[] = array("CNC_Heilongjiang","61.138.0.0/18");
$ips[] = array("CNC_Liaoning","61.161.128.0/17");
$ips[] = array("CNC_Liaoning","61.189.0.0/17");
$ips[] = array("CNC_Liaoning","202.107.0.0/17");
$ips[] = array("CNC_Liaoning","218.60.0.0/15");
$ips[] = array("CNC_Liaoning","221.200.0.0/14");
$ips[] = array("CNC_Liaoning","202.110.0.0/18");
$ips[] = array("CNC_Liaoning","61.137.128.0/17");
$ips[] = array("CNC_Liaoning","218.24.0.0/15");
$ips[] = array("CNC_Liaoning","202.96.64.0/19");
$ips[] = array("CNC_Liaoning","60.16.0.0/13");
$ips[] = array("CNC_Liaoning","61.176.0.0/16");
$ips[] = array("CNC_Liaoning","202.97.160.0/19");
$ips[] = array("CNC_Xinjiang","221.7.0.0/19");
$ips[] = array("CNC_Xinjiang","60.13.128.0/17");
$ips[] = array("CMNET_Shanxi","211.137.128.0/20");
$ips[] = array("CMNET_Shanxi","211.137.112.0/20");
$ips[] = array("CMNET_Shanxi","218.200.0.0/18");
$ips[] = array("CNC_Guangxi","221.7.128.0/17");
$ips[] = array("CNC_Zhejiang","60.12.0.0/16");
$ips[] = array("CNC_Zhejiang","221.12.0.0/17");
$ips[] = array("CNC_Zhejiang","221.12.128.0/18");
$ips[] = array("CMNET_Qinghai","218.206.160.0/20");
$ips[] = array("CMNET_Qinghai","211.138.64.0/20");
$ips[] = array("CT_Heilongjiang","222.172.0.0/17");
$ips[] = array("CT_Heilongjiang","219.147.64.0/19");
$ips[] = array("CT_Heilongjiang","222.170.0.0/15");
$ips[] = array("CT_Heilongjiang","219.147.128.0/17");
$ips[] = array("CNC_Shanxi","218.26.0.0/16");
$ips[] = array("CNC_Shanxi","60.220.0.0/14");
$ips[] = array("CNC_Shanxi","61.134.192.0/18");
$ips[] = array("CNC_Shanxi","202.97.128.0/19");
$ips[] = array("CNC_Shanxi","202.99.200.0/21");
$ips[] = array("CNC_Shanxi","202.99.196.0/22");
$ips[] = array("CNC_Shanxi","202.99.208.0/20");
$ips[] = array("CNC_Shanxi","221.204.0.0/15");
$ips[] = array("Colo_cn3","203.209.240.0/21");
$ips[] = array("CMNET_Hainan","211.138.160.0/20");
$ips[] = array("CMNET_Shandong","211.137.176.0/20");
$ips[] = array("CMNET_Shandong","218.201.96.0/19");
$ips[] = array("CMNET_Shandong","218.201.128.0/18");
$ips[] = array("CMNET_Shandong","211.137.192.0/20");
$ips[] = array("CNC_Yunnan","221.3.128.0/17");
$ips[] = array("CNC_Yunnan","221.213.0.0/16");
$ips[] = array("CT_Qinghai","202.100.128.0/19");
$ips[] = array("CT_Qinghai","218.95.224.0/19");
$ips[] = array("CT_Qinghai","220.167.128.0/17");
$ips[] = array("CT_Qinghai","61.133.224.0/19");
$ips[] = array("CERNET_Chengdu","219.221.0.0/16");
$ips[] = array("CERNET_Chengdu","210.40.0.0/15");
$ips[] = array("CERNET_Chengdu","202.115.0.0/16");
$ips[] = array("CERNET_Chengdu","202.202.0.0/15");
$ips[] = array("CERNET_Chengdu","211.83.0.0/16");
$ips[] = array("CERNET_Chengdu","218.194.0.0/16");
$ips[] = array("CERNET_Chengdu","222.18.0.0/15");
$ips[] = array("CERNET_Chengdu","222.198.0.0/16");
$ips[] = array("CERNET_Chengdu","222.196.0.0/15");
$ips[] = array("CMNET_Other","221.130.128.0/17");
$ips[] = array("CMNET_Other","211.138.192.0/20");
$ips[] = array("CMNET_Other","221.176.0.0/13");
$ips[] = array("CMNET_Other","211.136.16.0/21");
$ips[] = array("CMNET_Other","218.200.240.0/20");
$ips[] = array("CMNET_Other","218.206.176.0/20");
$ips[] = array("CMNET_Other","221.130.112.0/20");
$ips[] = array("CMNET_Other","211.136.0.0/20");
$ips[] = array("CMNET_Other","211.137.96.0/20");
$ips[] = array("CMNET_Other","211.137.80.0/20");
$ips[] = array("CMNET_Other","218.207.128.0/17");
$ips[] = array("CMNET_Other","218.207.64.0/18");
$ips[] = array("CNC_ShanXi","221.11.0.0/17");
$ips[] = array("CNC_Shandong","61.156.0.0/16");
$ips[] = array("CNC_Shandong","60.208.0.0/13");
$ips[] = array("CNC_Shandong","221.214.0.0/15");
$ips[] = array("CNC_Shandong","60.216.0.0/15");
$ips[] = array("CNC_Shandong","61.133.0.0/17");
$ips[] = array("CNC_Shandong","218.56.0.0/14");
$ips[] = array("CNC_Shandong","221.3.0.0/17");
$ips[] = array("CNC_Shandong","202.102.128.0/18");
$ips[] = array("CNC_Shandong","61.179.0.0/16");
$ips[] = array("CNC_Shandong","202.110.192.0/18");
$ips[] = array("CNC_Shandong","61.162.0.0/16");
$ips[] = array("CNC_Shandong","221.2.0.0/16");
$ips[] = array("CNC_Shandong","221.0.0.0/15");
$ips[] = array("CNC_Shandong","222.132.0.0/14");
$ips[] = array("CMNET_Hebei","211.143.64.0/18");
$ips[] = array("CMNET_Hebei","211.143.48.0/20");
$ips[] = array("CMNET_Hebei","211.138.0.0/20");
$ips[] = array("CMNET_Hebei","211.143.128.0/20");
$ips[] = array("CMNET_Zhejiang","211.140.0.0/17");
$ips[] = array("CMNET_Zhejiang","211.138.112.0/20");
$ips[] = array("CMNET_Zhejiang","218.205.48.0/20");
$ips[] = array("CMNET_Zhejiang","211.140.128.0/18");
$ips[] = array("CMNET_Zhejiang","211.138.128.0/22");
$ips[] = array("CMNET_Zhejiang","218.205.64.0/18");
$ips[] = array("CERNET_Shenyang","202.198.0.0/15");
$ips[] = array("CERNET_Shenyang","210.46.0.0/15");
$ips[] = array("CERNET_Shenyang","219.216.0.0/15");
$ips[] = array("CERNET_Shenyang","202.118.0.0/16");
$ips[] = array("CERNET_Shenyang","222.26.0.0/15");
$ips[] = array("CERNET_Shenyang","210.30.0.0/16");
$ips[] = array("CERNET_Shenyang","59.72.0.0/15");
$ips[] = array("CNC_Beijing","222.128.0.0/14");
$ips[] = array("CNC_Beijing","61.49.64.0/18");
$ips[] = array("CNC_Beijing","202.108.81.0/25");
$ips[] = array("CNC_Beijing","202.108.128.0/17");
$ips[] = array("CNC_Beijing","61.49.7.0/25");
$ips[] = array("CNC_Beijing","61.49.0.0/22");
$ips[] = array("CNC_Beijing","202.96.0.0/18");
$ips[] = array("CNC_Beijing","202.108.84.0/22");
$ips[] = array("CNC_Beijing","125.34.192.0/18");
$ips[] = array("CNC_Beijing","202.108.64.0/20");
$ips[] = array("CNC_Beijing","202.108.80.0/24");
$ips[] = array("CNC_Beijing","61.50.0.0/15");
$ips[] = array("CNC_Beijing","61.49.16.0/20");
$ips[] = array("CNC_Beijing","61.49.4.0/23");
$ips[] = array("CNC_Beijing","61.49.6.0/24");
$ips[] = array("CNC_Beijing","203.212.0.0/21");
$ips[] = array("CNC_Beijing","123.116.64.0/18");
$ips[] = array("CNC_Beijing","202.108.81.224/27");
$ips[] = array("CNC_Beijing","219.158.128.0/17");
$ips[] = array("CNC_Beijing","202.106.0.0/16");
$ips[] = array("CNC_Beijing","221.216.0.0/13");
$ips[] = array("CNC_Beijing","202.108.96.0/19");
$ips[] = array("CNC_Beijing","202.108.82.0/23");
$ips[] = array("CNC_Beijing","61.48.0.0/16");
$ips[] = array("CNC_Beijing","202.108.0.0/18");
$ips[] = array("CNC_Beijing","61.135.0.0/16");
$ips[] = array("CNC_Beijing","61.49.32.0/19");
$ips[] = array("CNC_Beijing","202.99.0.0/18");
$ips[] = array("CNC_Beijing","61.49.8.0/21");
$ips[] = array("CNC_Beijing","202.108.88.0/21");
$ips[] = array("CNC_Beijing","61.148.0.0/15");
$ips[] = array("CNC_Beijing","61.49.128.0/17");
$ips[] = array("CNC_Beijing","203.212.8.0/22");
$ips[] = array("CERNET_CIS","58.194.0.0/15");
$ips[] = array("CERNET_CIS","58.200.0.0/13");
$ips[] = array("CMNET_Beijing","211.136.24.0/21");
$ips[] = array("CMNET_Beijing","211.136.64.0/19");
$ips[] = array("CMNET_Beijing","218.205.128.0/18");
$ips[] = array("CMNET_Beijing","218.206.64.0/19");
$ips[] = array("CMNET_Beijing","218.205.192.0/19");
$ips[] = array("CMNET_Beijing","221.130.32.0/20");
$ips[] = array("CMNET_Beijing","211.136.32.0/19");
$ips[] = array("CERNET_Shanghai","202.120.0.0/15");
$ips[] = array("CERNET_Shanghai","210.32.0.0/14");
$ips[] = array("CERNET_Shanghai","211.80.0.0/16");
$ips[] = array("CERNET_Shanghai","218.193.0.0/16");
$ips[] = array("CERNET_Shanghai","219.220.0.0/16");
$ips[] = array("CERNET_Shanghai","219.228.0.0/15");
$ips[] = array("CERNET_Shanghai","222.204.0.0/15");
$ips[] = array("CERNET_Shanghai","59.77.0.0/16");
$ips[] = array("CERNET_Shanghai","59.78.0.0/15");
$ips[] = array("CMNET_Jiangsu","218.206.128.0/19");
$ips[] = array("CMNET_Jiangsu","218.205.32.0/20");
$ips[] = array("CMNET_Jiangsu","221.130.64.0/19");
$ips[] = array("CMNET_Jiangsu","221.130.0.0/19");
$ips[] = array("CMNET_Jiangsu","211.143.224.0/19");
$ips[] = array("CMNET_Jiangsu","211.139.96.0/19");
$ips[] = array("CMNET_Jiangsu","218.206.96.0/19");
$ips[] = array("CMNET_Jiangsu","218.205.0.0/19");
$ips[] = array("CMNET_Jiangsu","221.130.48.0/20");
$ips[] = array("CMNET_Jiangsu","221.130.96.0/20");
$ips[] = array("CT_Chongqing","219.151.128.0/17");
$ips[] = array("CT_Chongqing","61.161.64.0/18");
$ips[] = array("CT_Chongqing","202.98.32.0/19");
$ips[] = array("CT_Chongqing","222.176.0.0/13");
$ips[] = array("CT_Chongqing","61.128.128.0/17");
$ips[] = array("CT_Chongqing","61.186.128.0/17");
$ips[] = array("CT_Chongqing","218.21.48.0/20");
$ips[] = array("CT_Chongqing","218.70.0.0/16");
$ips[] = array("CT_Zhejiang","61.153.0.0/16");
$ips[] = array("CT_Zhejiang","61.174.0.0/15");
$ips[] = array("CT_Zhejiang","202.107.192.0/18");
$ips[] = array("CT_Zhejiang","218.71.0.0/16");
$ips[] = array("CT_Zhejiang","218.74.0.0/16");
$ips[] = array("CT_Zhejiang","220.184.0.0/13");
$ips[] = array("CT_Zhejiang","60.176.0.0/12");
$ips[] = array("CT_Zhejiang","61.130.0.0/16");
$ips[] = array("CT_Zhejiang","60.162.0.0/15");
$ips[] = array("CT_Zhejiang","61.164.0.0/16");
$ips[] = array("CT_Zhejiang","202.101.160.0/19");
$ips[] = array("CT_Zhejiang","218.75.0.0/17");
$ips[] = array("CT_Zhejiang","218.72.0.0/15");
$ips[] = array("CT_Zhejiang","202.96.96.0/19");
$ips[] = array("CT_Zhejiang","218.0.0.0/16");
$ips[] = array("CERNET_Beijing","210.31.0.0/16");
$ips[] = array("CERNET_Beijing","222.199.0.0/16");
$ips[] = array("CERNET_Beijing","211.82.0.0/16");
$ips[] = array("CERNET_Beijing","162.105.0.0/16");
$ips[] = array("CERNET_Beijing","219.242.0.0/16");
$ips[] = array("CERNET_Beijing","219.243.0.0/17");
$ips[] = array("CERNET_Beijing","219.243.128.0/18");
$ips[] = array("CERNET_Beijing","202.113.0.0/16");
$ips[] = array("CERNET_Beijing","59.64.0.0/14");
$ips[] = array("CERNET_Beijing","202.204.0.0/14");
$ips[] = array("CERNET_Beijing","211.68.0.0/16");
$ips[] = array("CERNET_Beijing","202.112.64.0/18");
$ips[] = array("CERNET_Beijing","211.81.0.0/16");
$ips[] = array("CERNET_Beijing","219.225.0.0/16");
$ips[] = array("CERNET_Beijing","219.224.0.0/17");
$ips[] = array("CERNET_Beijing","202.4.128.0/19");
$ips[] = array("CERNET_Beijing","202.112.128.0/17");
$ips[] = array("CERNET_Beijing","211.71.0.0/16");
$ips[] = array("CERNET_Beijing","166.111.0.0/16");
$ips[] = array("CERNET_Beijing","222.28.0.0/14");
$ips[] = array("CERNET_Beijing","219.224.128.0/18");
$ips[] = array("CERNET_Beijing","219.226.0.0/16");
$ips[] = array("CMNET_Guangxi","211.138.240.0/20");
$ips[] = array("CMNET_Guangxi","218.204.0.0/18");
$ips[] = array("CMNET_Heilongjiang","218.203.64.0/19");
$ips[] = array("CMNET_Heilongjiang","218.203.0.0/18");
$ips[] = array("CMNET_Heilongjiang","211.137.224.0/19");
$ips[] = array("CERNET_Guangzhou","202.116.0.0/16");
$ips[] = array("CERNET_Guangzhou","219.227.0.0/16");
$ips[] = array("CERNET_Guangzhou","202.38.192.0/18");
$ips[] = array("CERNET_Guangzhou","210.36.0.0/14");
$ips[] = array("CERNET_Guangzhou","202.192.0.0/15");
$ips[] = array("CERNET_Guangzhou","211.66.0.0/16");
$ips[] = array("CERNET_Guangzhou","218.192.0.0/16");
$ips[] = array("CERNET_Guangzhou","219.222.0.0/15");
$ips[] = array("CERNET_Guangzhou","222.16.0.0/15");
$ips[] = array("CERNET_Guangzhou","222.20.0.0/14");
$ips[] = array("CNC_Sichuan","221.10.0.0/16");
$ips[] = array("CERNET_Nanjing","202.119.0.0/16");
$ips[] = array("CERNET_Nanjing","202.38.64.0/19");
$ips[] = array("CERNET_Nanjing","202.194.0.0/15");
$ips[] = array("CERNET_Nanjing","210.44.0.0/15");
$ips[] = array("CERNET_Nanjing","211.64.0.0/15");
$ips[] = array("CERNET_Nanjing","210.28.0.0/15");
$ips[] = array("CERNET_Nanjing","211.70.0.0/16");
$ips[] = array("CERNET_Nanjing","211.86.0.0/15");
$ips[] = array("CERNET_Nanjing","219.218.0.0/15");
$ips[] = array("CERNET_Nanjing","219.230.0.0/15");
$ips[] = array("CERNET_Nanjing","222.192.0.0/14");
$ips[] = array("CERNET_Nanjing","222.206.0.0/15");
$ips[] = array("CERNET_Nanjing","58.192.0.0/15");
$ips[] = array("CNC_Gansu","60.13.0.0/18");
$ips[] = array("CNC_Gansu","221.7.48.0/20");
$ips[] = array("CNC_Gansu","221.7.41.65/26");
$ips[] = array("CNC_Gansu","221.7.44.0/22");
$ips[] = array("CNC_Gansu","221.7.32.0/21");
$ips[] = array("CNC_Gansu","221.7.40.0/24");
$ips[] = array("CNC_Gansu","221.7.41.0/27");
$ips[] = array("CNC_Gansu","221.7.41.33/27");
$ips[] = array("CNC_Gansu","221.7.42.0/23");
$ips[] = array("CERNET_Wuhan","210.42.0.0/15");
$ips[] = array("CERNET_Wuhan","202.114.0.0/16");
$ips[] = array("CERNET_Wuhan","202.196.0.0/15");
$ips[] = array("CERNET_Wuhan","211.69.0.0/16");
$ips[] = array("CERNET_Wuhan","211.67.0.0/16");
$ips[] = array("CERNET_Wuhan","218.196.0.0/14");
$ips[] = array("CERNET_Wuhan","211.84.0.0/15");
$ips[] = array("CERNET_Wuhan","222.20.0.0/15");
$ips[] = array("CERNET_Wuhan","222.22.0.0/16");
$ips[] = array("CERNET_Wuhan","59.68.0.0/14");
$ips[] = array("CT_Shandong","222.173.0.0/16");
$ips[] = array("CT_Shandong","222.174.0.0/15");
$ips[] = array("CT_Shandong","219.146.0.0/16");
$ips[] = array("CT_Shandong","219.147.0.0/19");
$ips[] = array("CERNET_MISC","210.25.0.0/17");
$ips[] = array("CERNET_MISC","219.224.192.0/18");
$ips[] = array("CERNET_MISC","202.112.0.0/18");
$ips[] = array("CERNET_MISC","202.127.224.0/19");
$ips[] = array("CERNET_MISC","202.38.140.0/23");
$ips[] = array("CERNET_MISC","202.38.96.0/19");
$ips[] = array("CERNET_MISC","202.127.216.0/21");
$ips[] = array("CERNET_MISC","202.38.184.0/21");
$ips[] = array("CERNET_MISC","219.243.192.0/18");
$ips[] = array("CERNET_MISC","210.25.128.0/18");
$ips[] = array("CNC_Neimenggu","61.138.64.0/18");
$ips[] = array("CNC_Neimenggu","219.159.0.0/18");
$ips[] = array("CNC_Neimenggu","221.199.128.0/18");
$ips[] = array("CNC_Neimenggu","61.134.96.0/19");
$ips[] = array("CNC_Neimenggu","58.18.0.0/16");
$ips[] = array("CNC_Neimenggu","221.199.192.0/18");
$ips[] = array("CNC_Neimenggu","202.99.224.0/19");
$ips[] = array("CNC_Neimenggu","60.31.0.0/16");
$ips[] = array("CNC_Neimenggu","218.21.128.0/17");
$ips[] = array("CNC_Xizang","221.13.64.0/19");
$ips[] = array("CNC_Hainan","221.11.128.0/18");
$ips[] = array("CNC_Hainan","221.11.192.0/19");
$ips[] = array("CT_Neimenggu","222.74.0.0/16");
$ips[] = array("CT_Neimenggu","219.147.96.0/19");
$ips[] = array("CT_Neimenggu","219.148.160.0/19");
$ips[] = array("CNC_Guizhou","58.16.0.0/16");
$ips[] = array("CNC_Guizhou","221.13.0.0/18");
$ips[] = array("CNC_Henan","202.110.64.0/18");
$ips[] = array("CNC_Henan","218.28.0.0/15");
$ips[] = array("CNC_Henan","219.156.0.0/15");
$ips[] = array("CNC_Henan","202.102.224.0/19");
$ips[] = array("CNC_Henan","61.52.0.0/15");
$ips[] = array("CNC_Henan","221.14.0.0/15");
$ips[] = array("CNC_Henan","219.154.0.0/15");
$ips[] = array("CNC_Henan","202.111.128.0/19");
$ips[] = array("CNC_Henan","221.13.128.0/17");
$ips[] = array("CNC_Henan","222.136.0.0/13");
$ips[] = array("CNC_Henan","61.168.0.0/16");
$ips[] = array("CNC_Henan","61.163.0.0/16");
$ips[] = array("CNC_Henan","61.54.0.0/16");
$ips[] = array("CNC_Henan","61.136.64.0/18");
$ips[] = array("CNC_Henan","61.158.128.0/17");
$ips[] = array("CNC_Hebei","60.0.0.0/13");
$ips[] = array("CNC_Hebei","60.8.0.0/15");
$ips[] = array("CNC_Hebei","221.192.0.0/14");
$ips[] = array("CNC_Hebei","218.11.0.0/16");
$ips[] = array("CNC_Hebei","61.55.0.0/16");
$ips[] = array("CNC_Hebei","60.10.0.0/16");
$ips[] = array("CNC_Hebei","61.182.0.0/16");
$ips[] = array("CNC_Hebei","61.159.0.0/18");
$ips[] = array("CNC_Hebei","61.134.128.0/18");
$ips[] = array("CNC_Hebei","202.99.128.0/18");
$ips[] = array("CNC_Hebei","218.12.0.0/16");
$ips[] = array("CMNET_Xinjiang","218.202.144.0/20");
$ips[] = array("CMNET_Xinjiang","218.202.160.0/19");
$ips[] = array("CMNET_Xinjiang","218.202.192.0/19");
$ips[] = array("CMNET_Xinjiang","211.138.32.0/20");
$ips[] = array("CT_Guangxi","219.159.64.0/18");
$ips[] = array("CT_Guangxi","218.65.128.0/17");
$ips[] = array("CT_Guangxi","222.216.0.0/15");
$ips[] = array("CT_Guangxi","61.139.192.0/18");
$ips[] = array("CT_Guangxi","218.21.64.0/18");
$ips[] = array("CT_Guangxi","220.173.0.0/16");
$ips[] = array("CT_Guangxi","222.83.128.0/17");
$ips[] = array("CT_Guangxi","222.218.0.0/16");
$ips[] = array("CT_Guangxi","219.159.128.0/17");
$ips[] = array("CT_Guangxi","202.103.192.0/18");
$ips[] = array("CT_Hebei","222.222.0.0/15");
$ips[] = array("CT_Hebei","219.148.128.0/19");
$ips[] = array("CT_Hebei","219.148.0.0/17");
$ips[] = array("CMNET_Fujian","211.138.136.0/21");
$ips[] = array("CMNET_Fujian","211.138.132.0/22");
$ips[] = array("CMNET_Fujian","211.143.192.0/19");
$ips[] = array("CMNET_Fujian","211.138.144.0/20");
$ips[] = array("CMNET_Fujian","211.143.144.0/20");
$ips[] = array("CMNET_Fujian","211.143.160.0/19");
$ips[] = array("CNC_Qinghai","221.207.0.0/18");
$ips[] = array("CMNET_ShanXi","211.142.0.0/18");
$ips[] = array("CMNET_ShanXi","211.142.64.0/19");
$ips[] = array("CMNET_ShanXi","211.138.96.0/20");
$ips[] = array("CMNET_Guizhou","211.139.0.0/20");
$ips[] = array("CMNET_Guizhou","218.201.192.0/18");
$ips[] = array("UNICOM","211.96.0.0/15");
$ips[] = array("UNICOM","202.108.81.208/28");
$ips[] = array("UNICOM","220.192.0.0/12");
$ips[] = array("UNICOM","211.90.0.0/15");
$ips[] = array("UNICOM","211.92.0.0/14");
$ips[] = array("CT_Xizang","202.98.224.0/19");
$ips[] = array("CT_Xizang","219.151.32.0/19");
$ips[] = array("CT_Fujian","222.76.0.0/14");
$ips[] = array("CT_Fujian","220.162.0.0/16");
$ips[] = array("CT_Fujian","61.131.0.0/17");
$ips[] = array("CT_Fujian","202.101.128.0/19");
$ips[] = array("CT_Fujian","202.109.192.0/18");
$ips[] = array("CT_Fujian","218.6.0.0/17");
$ips[] = array("CT_Fujian","218.67.0.0/17");
$ips[] = array("CT_Fujian","61.154.0.0/16");
$ips[] = array("CT_Fujian","202.101.96.0/19");
$ips[] = array("CT_Fujian","218.66.0.0/16");
$ips[] = array("CT_Fujian","218.86.0.0/17");
$ips[] = array("CT_Fujian","220.160.0.0/15");
$ips[] = array("CT_Fujian","59.56.0.0/14");
$ips[] = array("CT_Fujian","218.5.0.0/16");
$ips[] = array("CT_Fujian","218.85.0.0/16");
$ips[] = array("CT_Fujian","59.60.0.0/15");
$ips[] = array("CNC_Other","218.104.0.0/14");
$ips[] = array("CNC_Other","210.12.192.0/18");
$ips[] = array("CNC_Other","220.248.0.0/14");
$ips[] = array("CNC_Other","210.15.0.0/17");
$ips[] = array("CNC_Other","210.74.128.0/19");
$ips[] = array("CNC_Other","219.158.0.0/19");
$ips[] = array("CNC_Other","210.74.96.0/19");
$ips[] = array("CNC_Other","210.51.0.0/16");
$ips[] = array("CNC_Other","210.22.0.0/16");
$ips[] = array("CNC_Other","210.15.128.0/18");
$ips[] = array("CNC_Other","210.12.163.0/24");
$ips[] = array("CNC_Other","210.12.168.0/21");
$ips[] = array("CNC_Other","210.13.0.0/16");
$ips[] = array("CNC_Other","210.12.160.0/23");
$ips[] = array("CNC_Other","210.12.164.0/22");
$ips[] = array("CNC_Other","210.52.0.0/15");
$ips[] = array("CNC_Other","220.252.0.0/16");
$ips[] = array("CNC_Other","210.21.0.0/16");
$ips[] = array("CNC_Other","210.12.0.0/17");
$ips[] = array("CNC_Other","210.12.128.0/19");
$ips[] = array("CNC_Other","210.14.160.0/19");
$ips[] = array("CNC_Other","210.12.162.0/26");
$ips[] = array("CNC_Other","210.14.192.0/18");
$ips[] = array("CNC_Other","210.12.162.128/25");
$ips[] = array("CNC_Other","210.82.0.0/15");
$ips[] = array("CNC_Other","210.12.176.0/20");
$ips[] = array("CNC_Other","210.78.0.0/19");
$ips[] = array("CT_Xinjiang","218.31.0.0/16");
$ips[] = array("CT_Xinjiang","220.171.128.0/18");
$ips[] = array("CT_Xinjiang","218.84.0.0/16");
$ips[] = array("CT_Xinjiang","222.80.0.0/15");
$ips[] = array("CT_Xinjiang","222.82.0.0/16");
$ips[] = array("CT_Xinjiang","222.83.0.0/17");
$ips[] = array("CT_Xinjiang","220.171.0.0/17");
$ips[] = array("CT_Xinjiang","202.100.160.0/19");
$ips[] = array("CT_Xinjiang","202.107.128.0/18");
$ips[] = array("CT_Hongkong","202.97.96.0/19");
$ips[] = array("CT_Hongkong","218.30.56.0/21");
$ips[] = array("CT_Anhui","60.166.0.0/12");
$ips[] = array("CT_Anhui","202.102.192.0/19");
$ips[] = array("CT_Anhui","218.22.0.0/15");
$ips[] = array("CT_Anhui","61.132.128.0/17");
$ips[] = array("CT_Anhui","61.133.128.0/18");
$ips[] = array("CT_Anhui","220.178.0.0/15");
$ips[] = array("CT_Anhui","220.180.0.0/16");
$ips[] = array("CT_Anhui","61.190.0.0/15");
$ips[] = array("CT_Anhui","202.111.192.0/19");
$ips[] = array("CMNET_Hunan","211.138.224.0/20");
$ips[] = array("CMNET_Hunan","211.142.224.0/19");
$ips[] = array("CMNET_Hunan","211.143.32.0/20");
$ips[] = array("CMNET_Hunan","211.143.0.0/19");
$ips[] = array("CMNET_Hunan","211.142.208.0/20");
$ips[] = array("CT_Henan","219.147.48.0/20");
$ips[] = array("CT_Henan","222.88.0.0/15");
$ips[] = array("CT_Henan","222.85.0.0/17");
$ips[] = array("CT_Henan","219.150.112.0/20");
$ips[] = array("CT_Henan","219.150.128.0/17");
$ips[] = array("CT_Other","202.97.0.0/18");
$ips[] = array("CT_Other","202.97.64.0/19");
$ips[] = array("CT_Other","61.128.0.0/17");
$ips[] = array("CT_Other","220.182.0.0/15");
$ips[] = array("CT_Other","219.151.64.0/18");
$ips[] = array("CT_Other","61.49.7.128/28");
$ips[] = array("CT_Other","218.30.0.0/16");
$ips[] = array("CT_Other","210.192.96.0/19");
$ips[] = array("CMNET_Ningxia","218.203.128.0/19");
$ips[] = array("CMNET_Ningxia","211.138.48.0/20");
$ips[] = array("CMNET_Ningxia","218.203.96.0/19");
$ips[] = array("CMNET_Guangdong","211.136.192.0/18");
$ips[] = array("CMNET_Guangdong","211.139.128.0/17");
$ips[] = array("CMNET_Guangdong","218.204.160.0/19");
$ips[] = array("CMNET_Guangdong","218.204.192.0/18");
$ips[] = array("CMNET_Hubei","218.200.128.0/19");
$ips[] = array("CMNET_Hubei","218.200.64.0/18");
$ips[] = array("CMNET_Hubei","211.137.48.0/20");
$ips[] = array("CMNET_Hubei","211.137.64.0/20");
$ips[] = array("CMNET_Liaoning","211.137.32.0/20");
$ips[] = array("CMNET_Liaoning","211.140.192.0/18");
$ips[] = array("CMNET_Liaoning","211.137.0.0/19");
$ips[] = array("CT_Hainan","124.228.0.0/14");
$ips[] = array("CT_Hainan","59.50.0.0/16");
$ips[] = array("CT_Hainan","61.186.0.0/18");
$ips[] = array("CT_Hainan","218.76.0.0/18");
$ips[] = array("CT_Hainan","58.44.0.0/17");
$ips[] = array("CT_Hainan","202.100.192.0/18");
$ips[] = array("CT_Hainan","202.103.96.0/23");
$ips[] = array("CT_Hainan","220.174.0.0/16");
$ips[] = array("CT_Hainan","61.137.0.0/17");
$ips[] = array("CT_Hainan","218.77.128.0/17");
$ips[] = array("CT_Hainan","124.232.0.0/15");
$ips[] = array("CT_Hainan","222.240.0.0/18");
$ips[] = array("CT_Hainan","59.51.0.0/17");
$ips[] = array("CT_Hainan","59.49.128.0/17");
$ips[] = array("CMNET_Tianjin","211.137.160.0/20");
$ips[] = array("CMNET_Tianjin","211.137.144.0/20");
$ips[] = array("CMNET_Jilin","211.141.0.0/18");
$ips[] = array("CMNET_Jilin","211.137.208.0/21");
$ips[] = array("CMNET_Jilin","211.141.64.0/20");
$ips[] = array("CMNET_Jilin","211.137.216.0/21");
$ips[] = array("CMNET_Neimenggu","218.202.128.0/20");
$ips[] = array("CMNET_Neimenggu","211.138.80.0/20");
$ips[] = array("CMNET_Neimenggu","218.202.64.0/18");
$ips[] = array("CT_Guizhou","220.171.192.0/18");
$ips[] = array("CT_Guizhou","222.85.128.0/17");
$ips[] = array("CT_Guizhou","61.138.224.0/19");
$ips[] = array("CT_Guizhou","61.189.128.0/17");
$ips[] = array("CT_Guizhou","61.159.128.0/18");
$ips[] = array("CT_Guizhou","218.86.128.0/17");
$ips[] = array("CT_Guizhou","202.101.64.0/19");
$ips[] = array("CT_Guizhou","219.151.0.0/19");
$ips[] = array("CT_Guizhou","219.141.0.0/17");
$ips[] = array("CT_Guizhou","202.98.192.0/19");
$ips[] = array("CMNET_Jiangxi","211.141.128.0/19");
$ips[] = array("CMNET_Jiangxi","211.138.208.0/20");
$ips[] = array("CMNET_Jiangxi","218.204.64.0/18");
$ips[] = array("CMNET_Jiangxi","211.141.96.0/19");
$ips[] = array("CMNET_Jiangxi","211.141.80.0/20");
$ips[] = array("CMNET_Jiangxi","218.204.128.0/19");
$ips[] = array("CMNET_Xizang","211.139.64.0/20");
$ips[] = array("CMNET_Yunnan","218.206.32.0/19");
$ips[] = array("CMNET_Yunnan","218.202.0.0/18");
$ips[] = array("CMNET_Yunnan","211.139.16.0/20");
$ips[] = array("CMNET_Chongqing","218.206.0.0/19");
$ips[] = array("CMNET_Chongqing","218.201.0.0/18");
$ips[] = array("CMNET_Chongqing","218.207.0.0/18");
$ips[] = array("CMNET_Chongqing","218.201.64.0/19");
$ips[] = array("CMNET_Chongqing","211.139.32.0/19");
$ips[] = array("CRCnet","123.64.0.0/12");
$ips[] = array("CRCnet","221.172.0.0/14");
$ips[] = array("CRCnet","211.98.0.0/16");
$ips[] = array("CRCnet","123.32.0.0/12");
$ips[] = array("CRCnet","122.64.0.0/12");
$ips[] = array("CRCnet","222.32.0.0/12");
$ips[] = array("CRCnet","61.232.0.0/14");
$ips[] = array("CRCnet","61.236.0.0/15");
$ips[] = array("CRCnet","122.32.0.0/12");
$ips[] = array("CMNET_Gansu","211.139.80.0/20");
$ips[] = array("CMNET_Gansu","218.203.160.0/19");
$ips[] = array("CMNET_Gansu","218.203.192.0/19");
$ips[] = array("CT_Shanghai","61.151.0.0/16");
$ips[] = array("CT_Shanghai","58.32.0.0/13");
$ips[] = array("CT_Shanghai","58.40.0.0/15");
$ips[] = array("CT_Shanghai","61.165.0.0/16");
$ips[] = array("CT_Shanghai","61.169.0.0/16");
$ips[] = array("CT_Shanghai","202.96.192.0/18");
$ips[] = array("CT_Shanghai","202.109.0.0/17");
$ips[] = array("CT_Shanghai","218.1.0.0/16");
$ips[] = array("CT_Shanghai","61.170.0.0/15");
$ips[] = array("CT_Shanghai","221.239.128.0/17");
$ips[] = array("CT_Shanghai","202.101.0.0/18");
$ips[] = array("CT_Shanghai","61.172.0.0/15");
$ips[] = array("CT_Shanghai","61.152.0.0/16");
$ips[] = array("CT_Shanghai","218.80.0.0/14");
$ips[] = array("CT_Shanghai","218.78.0.0/15");
$ips[] = array("CT_Shanghai","61.129.0.0/16");
$ips[] = array("CT_Shanghai","222.72.0.0/15");
$ips[] = array("CT_Shanghai","222.64.0.0/13");
$ips[] = array("CMNET_Sichuan","218.200.192.0/19");
$ips[] = array("CMNET_Sichuan","218.200.224.0/20");
$ips[] = array("CMNET_Sichuan","218.203.224.0/19");
$ips[] = array("CMNET_Sichuan","218.200.160.0/19");
$ips[] = array("CMNET_Sichuan","218.205.224.0/19");
$ips[] = array("CERNET_Xian","202.117.0.0/16");
$ips[] = array("CERNET_Xian","222.23.0.0/16");
$ips[] = array("CERNET_Xian","210.26.0.0/15");
$ips[] = array("CERNET_Xian","59.74.0.0/15");
$ips[] = array("CERNET_Xian","218.195.0.0/16");
$ips[] = array("CERNET_Xian","222.24.0.0/15");
$ips[] = array("CERNET_Xian","59.76.0.0/16");
$ips[] = array("CERNET_Xian","202.200.0.0/15");
$ips[] = array("CERNET_Xian","219.244.0.0/14");
$ips[] = array("CMNET_Anhui","211.141.192.0/18");
$ips[] = array("CMNET_Anhui","211.138.176.0/20");
$ips[] = array("CMNET_Anhui","211.141.160.0/19");
$ips[] = array("CNC_Jilin","218.62.0.0/17");
$ips[] = array("CNC_Jilin","61.138.128.0/18");
$ips[] = array("CNC_Jilin","202.98.0.0/19");
$ips[] = array("CNC_Jilin","202.111.160.0/19");
$ips[] = array("CNC_Jilin","221.8.0.0/15");
$ips[] = array("CNC_Jilin","222.162.0.0/16");
$ips[] = array("CNC_Jilin","222.163.0.0/19");
$ips[] = array("CNC_Jilin","61.161.0.0/18");
$ips[] = array("CNC_Jilin","222.160.0.0/15");
$ips[] = array("CNC_Jilin","61.139.128.0/18");
$ips[] = array("CNC_Jilin","218.27.0.0/16");

$province = array();
$dong = array();
$ipgroup = array();
$phost = array();
$qhost = array();
for($i=0,$j=count($ips);$i<$j;$i++) {
	$ip = $ips[$i];	
	$cmd = "ipcalc {$ip[1]}|awk '/^Host(Min|Max)/{print $2;}'";
	$host = `$cmd`;
	$host = explode("\n",$host);
	if(in_array($host,$phost)) {
		$qhost[] = $ip;
	} else {
		$phost[] = $host;
		$p = strtolower($ip[0]);
		if(!isset($province[$p])) {
			$province[$p] = count($province);
			$dong[] = "{$p}\t{$province[$p]}";
		}
		$str = "{$host[0]}\t{$host[1]}\t{$province[$p]}";
		$ipgroup[] = $str;
	}
}
$dong = join("\n",$dong);
$ipgroup = join("\n",$ipgroup);
$qhost = print_r($qhost,true);
file_put_contents("/tmp/province.txt",$dong);
file_put_contents("/tmp/ipgroup.txt",$ipgroup);
file_put_contents("/tmp/invalid.txt",$qhost);

?>
